import React from "react";
import UcLoading from "./uc-loading";

export default class UcLoadingTest extends React.Component {
    state = {
        data: 'no',
        loading: true
    }

    componentDidMount() {
        setTimeout(() => {
            this.setState({ data: '读到的数据', loading: false })
        }, 100)
    }

    render() {
        return (
            <div>
                <UcLoading tip="抓取中" delay={200} spinning={this.state.loading} />
                <h3>测试</h3>
                <div>{this.state.data}</div>
            </div>
        )
    }
}